package org.longgang.service.impl;

import java.util.List;

import org.longgang.bean.CompanyInfo;
import org.longgang.dao.CompanyInfoDAO;
import org.longgang.service.CompanyInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.support.DaoSupport;
import org.springframework.stereotype.Service;

@Service("CompanyInfoService")
public class CompanyInfoServiceImpl implements CompanyInfoService{

	@Autowired
	private CompanyInfoDAO dao;
	
	@Override
	public Integer insertCompanyInfo(CompanyInfo info) {
		// TODO Auto-generated method stub
		return dao.insertCompanyInfo(info);
	}

	@Override
	public Integer updateCompanyInfo(CompanyInfo info) {
		// TODO Auto-generated method stub
		return dao.updateCompanyInfo(info);
	}

	@Override
	public CompanyInfo selectCompanyInfoById(CompanyInfo info) {
		// TODO Auto-generated method stub
		return dao.selectCompanyInfoById(info);
	}

	@Override
	public List<CompanyInfo> getAllCompanyInfo(Integer page, Integer pages) {
		// TODO Auto-generated method stub
		return dao.getAllCompanyInfo(page, pages);
	}

}
